﻿
<%@ Page Language="C#" Theme="PAT_Theme" MasterPageFile="~/master/PAT.master" AutoEventWireup="true"  CodeFile="PatCatalogoVehiculo.aspx.cs" Inherits="PatCatalogoVehiculo" Title="PatCatalogoVehiculo List" %>

<asp:Content ID="Content2" ContentPlaceHolderID="subHeaderContent" Runat="Server">Pat Catalogo Vehiculo List</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" Runat="Server">
		<data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1" PersistenceMethod="Session" />
		<br />
		<data:EntityGridView ID="GridView1" runat="server"			
				AutoGenerateColumns="False"					
				OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
				DataSourceID="PatCatalogoVehiculoDataSource"
				DataKeyNames="IdCatalogo"
				AllowMultiColumnSorting="false"
				DefaultSortColumnName="" 
				DefaultSortDirection="Ascending"	
				ExcelExportFileName="Export_PatCatalogoVehiculo.xls"  		
			>
			<Columns>
				<asp:CommandField ShowSelectButton="True" ShowEditButton="True" />				
				<asp:BoundField DataField="CodigoInternoCatalogo" HeaderText="Codigo Interno Catalogo" SortExpression="[CODIGO_INTERNO_CATALOGO]"  />
				<asp:BoundField DataField="DescripcionCatalogo" HeaderText="Descripcion Catalogo" SortExpression="[DESCRIPCION_CATALOGO]"  />
				<asp:BoundField DataField="Cilindraje" HeaderText="Cilindraje" SortExpression="[CILINDRAJE]"  />
				<data:HyperLinkField HeaderText="Id Marca Vehiculo" DataNavigateUrlFormatString="PatMarcaVehiculoEdit.aspx?IdMarcaVehiculo={0}" DataNavigateUrlFields="IdMarcaVehiculo" DataContainer="IdMarcaVehiculoSource" DataTextField="DescripcionMarcaVehiculo" />
				<data:HyperLinkField HeaderText="Id Tipo Servicio" DataNavigateUrlFormatString="PatTipoServicioEdit.aspx?IdTipoServicio={0}" DataNavigateUrlFields="IdTipoServicio" DataContainer="IdTipoServicioSource" DataTextField="DescripcionTipoServicio" />
				<data:HyperLinkField HeaderText="Id Clase Vehiculo" DataNavigateUrlFormatString="PatClaseVehiculoEdit.aspx?IdClaseVehiculo={0}" DataNavigateUrlFields="IdClaseVehiculo" DataContainer="IdClaseVehiculoSource" DataTextField="DescripcionClaseVehiculo" />
				<asp:BoundField DataField="CapacidadPasajeros" HeaderText="Capacidad Pasajeros" SortExpression="[CAPACIDAD_PASAJEROS]"  />
				<asp:BoundField DataField="CapacidadCarga" HeaderText="Capacidad Carga" SortExpression="[CAPACIDAD_CARGA]"  />
				<asp:BoundField DataField="NumeroPuertas" HeaderText="Numero Puertas" SortExpression="[NUMERO_PUERTAS]"  />
				<asp:BoundField DataField="CodigoTransito" HeaderText="Codigo Transito" SortExpression="[CODIGO_TRANSITO]"  />
				<asp:BoundField DataField="PorcentajeIva" HeaderText="Porcentaje Iva" SortExpression="[PORCENTAJE_IVA]"  />
				<data:HyperLinkField HeaderText="Id Gama Vehiculo" DataNavigateUrlFormatString="PatGamaVehiculoEdit.aspx?IdGamaVehiculo={0}" DataNavigateUrlFields="IdGamaVehiculo" DataContainer="IdGamaVehiculoSource" DataTextField="DescripcionGamaVehiculo" />
				<data:HyperLinkField HeaderText="Id Grupo Catalogo" DataNavigateUrlFormatString="PatGrupoCatalogoEdit.aspx?IdGrupoCatalogo={0}" DataNavigateUrlFields="IdGrupoCatalogo" DataContainer="IdGrupoCatalogoSource" DataTextField="DescripcionGrupoCatalogo" />
				<asp:BoundField DataField="VinBasico" HeaderText="Vin Basico" SortExpression="[VIN_BASICO]"  />
				<data:BoundRadioButtonField DataField="Activo" HeaderText="Activo" SortExpression="[ACTIVO]"  />
				<data:HyperLinkField HeaderText="Id Tipo Combustible" DataNavigateUrlFormatString="PatTipoCombustibleEdit.aspx?IdTipoCombustible={0}" DataNavigateUrlFields="IdTipoCombustible" DataContainer="IdTipoCombustibleSource" DataTextField="DescripcionTipoCombustible" />
			</Columns>
			<EmptyDataTemplate>
				<b>No PatCatalogoVehiculo Found!</b>
			</EmptyDataTemplate>
		</data:EntityGridView>
		<br />
		<asp:Button runat="server" ID="btnPatCatalogoVehiculo" OnClientClick="javascript:location.href='PatCatalogoVehiculoEdit.aspx'; return false;" Text="Agregar Nuevo "></asp:Button>
		<data:PatCatalogoVehiculoDataSource ID="PatCatalogoVehiculoDataSource" runat="server"
			SelectMethod="GetPaged"
			EnablePaging="True"
			EnableSorting="True"
			EnableDeepLoad="True"
			>
			<DeepLoadProperties Method="IncludeChildren" Recursive="False">
	            <Types>
					<data:PatCatalogoVehiculoProperty Name="PatClaseVehiculo"/> 
					<data:PatCatalogoVehiculoProperty Name="PatGamaVehiculo"/> 
					<data:PatCatalogoVehiculoProperty Name="PatGrupoCatalogo"/> 
					<data:PatCatalogoVehiculoProperty Name="PatMarcaVehiculo"/> 
					<data:PatCatalogoVehiculoProperty Name="PatTipoCombustible"/> 
					<data:PatCatalogoVehiculoProperty Name="PatTipoServicio"/> 
					<%--<data:PatCatalogoVehiculoProperty Name="IdItemInventarioPatItemInventarioCollection_From_PatItemCatalogo" />--%>
					<%--<data:PatCatalogoVehiculoProperty Name="PatCitaTallerCollection" />--%>
					<%--<data:PatCatalogoVehiculoProperty Name="PatItemCatalogoCollection" />--%>
					<%--<data:PatCatalogoVehiculoProperty Name="PatVehiculoCollection" />--%>
				</Types>
			</DeepLoadProperties>
			<Parameters>
				<data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />
				<data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
				<asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex" Type="Int32" />
				<asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize" Type="Int32" />
				<data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
			</Parameters>
		</data:PatCatalogoVehiculoDataSource>
	    		
</asp:Content>



